//#1低，2中，3高，4急，5加急#

var pmpFormat={
 	 formatTaskStatus:function(value, row, index){
   		if("1"==value){
   			return '<span class="label label-warning">未指派</span>';
   		}else if("2"==value){
   			return '<span class="label label-warning">未开始</span>';
   		}else if("3"==value){
   			return '<span class="label label-success">进行中</span>';
   		}else if("4"==value){
   			return '<span class="label label-warning">已提交</span>';
   		}else if("5"==value){
   			return '<span class="label label-danger">被驳回</span>';
   		}else if("6"==value){
   			return '<span class="label label-success">已完成</span>';
   		}else{
   			return '<span class="label label-danger">已删除</span>';
   		}
   	},
   	
   	formatTaskExpired:function(value, row, index){
   		if("1"==value){
   			return '<span class="label label-warning">已超时</span>';
   		}else if("2"==value){
   			return '<span class="label label-success">正常</span>';
   		}
   	},
   	//_D#1来自需求，2 不是来自需求#
	formatTaskFrom:function(value, row, index){
   		if("1"==value){
   			return '<span class="label label-success">需求</span>';
   		}else if("0"==value){
   			return '<span class="label label-success">非需求</span>';
   		}
   	},
   	
   	formatProcess: function(value, row, index){
   		return '<div class="progress ">'
   		
        +'<div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="'+value+'" aria-valuemin="0" aria-valuemax="100" style="width: '+value+'%">'
        +value+'%'
       +' </div>'
      +'</div>';
   	},
   	//#1低，2中，3高，4急，5加急#
    formatPriority: function(value, row, index){
   		if("1"==value){
   			return '<span class="label label-success">低</span>';
   		}else if("2"==value){
   			return '<span class="label label-warning">中</span>';
   		}else if("3"==value){
   			return '<span class="label label-warning">高</span>';
   		}else if("4"==value){
   			return '<span class="label label-danger">急</span>';
   		}else if("5"==value){
   			return '<span class="label label-danger">加急</span>';
   		}
   	},
   	
   	//#1轻微,2小调整,3中等,4严重,5非常严重,6宕机#
    formatBugSeverity: function(value, row, index){
   		if("1"==value){
   			return '<span class="label label-success">轻微</span>';
   		}else if("2"==value){
   			return '<span class="label label-success">小调整</span>';
   		}else if("3"==value){
   			return '<span class="label label-warning">中等</span>';
   		}else if("4"==value){
   			return '<span class="label label-danger">严重</span>';
   		}else if("5"==value){
   			return '<span class="label label-danger">非常严重</span>';
   		}else if("6"==value){
   			return '<span class="label label-danger">宕机</span>';
   		}
   	},
   	formatBugFrequency:function(value, row, index){
  		if("1"==value){
  			return '<span class="label label-success">随机</span>';
  		}else{
  			return '<span class="label label-danger">总是</span>';
  		}
  	},
   	//##1未指派,2待解决,3进行中,4修改并提交,5测试验收,6测试驳回,7经理驳回,8已完成,9延期处理,10取消，-1已删除#
    formatBugStatus: function(value, row, index){
   		if("1"==value){
   			return '<span class="label label-info">未指派</span>';
   		}else if("2"==value){
   			return '<span class="label label-info">待解决</span>';
   		}else if("3"==value){
   			return '<span class="label label-warning">进行中</span>';
   		}else if("4"==value){
   			return '<span class="label label-danger">修改并提交</span>';
   		}else if("5"==value){
   			return '<span class="label label-danger">测试验收</span>';
   		}else if("6"==value){
   			return '<span class="label label-danger">测试驳回</span>';
   		}else if("7"==value){
   			return '<span class="label label-danger">经理驳回</span>';
   		}else if("8"==value){
   			return '<span class="label label-danger">已完成</span>';
   		}else if("9"==value){
   			return '<span class="label label-danger">延期处理</span>';
   		}else if("-1"==value){
   			return '<span class="label label-danger">已删除</span>';
   		}
   	},
   	formatBugExpired: function(value, row, index){
   		if("1"==value){
  			return '<span class="label label-success">正常</span>';
  		}else{
  			return '<span class="label label-danger">已超时</span>';
  		}
   	}
}